package com.collection.service;

import com.collection.entity.WebsiteStrategy;


public interface WebsiteStrategyService {
	
	/**
	 * 根据ID获取网址采集策略
	 * @param id 网址采集策略ID
	 * @return 网址采集策略对象
	 */
	WebsiteStrategy getWebsiteStrategyById(Integer id);
	
	/**
	 * 根据任务ID获取网址采集策略对象
	 * @param taskId 任务ID
	 * @return 网址采集策略对象
	 */
	WebsiteStrategy getWebsiteStrategyByTaskId(Integer taskId);
	
	/**
	 * 创建网址采集策略
	 * @param websiteStrategy 网址采集策略对象
	 */
	void createWebsiteStrategy(WebsiteStrategy websiteStrategy);
	
	/**
	 * 修改网址采集策略
	 * @param websiteStrategy 网址采集策略对象
	 */
	void modifyWebsiteStrategy(WebsiteStrategy websiteStrategy);
	
	/**
	 * 根据ID删除网址采集策略
	 * @param id
	 */
	void deleteWebsiteStrategy(Integer id);
	
	/**
	 * 删除网址采集策略
	 * @param websiteStrategy网址采集策略对象
	 */
	void deleteWebsiteStrategy(WebsiteStrategy websiteStrategy);
}
